﻿using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.Serialization;

namespace OpenWaves.Web.Controls
{
    [Serializable]
    [SuppressMessage("Microsoft.Naming", "CA1710:IdentifiersShouldHaveCorrectSuffix")]
    public class GeoMarker : Dictionary<string, object>
    {
        public GeoMarker()
        {
        }

        protected GeoMarker(SerializationInfo info, StreamingContext context) : base(info, context)
        {
        }

        public GeoPoint Location
        {
            get { return (GeoPoint) this["location"]; }
            set { this["location"] = value; }
        }

        public string ToolTip
        {
            get { return (string) this["toolTip"]; }
            set { this["toolTip"] = value; }
        }

        public string InfoWindowContent
        {
            get { return (string) this["infoWindowContent"]; }
            set { this["infoWindowContent"] = value; }
        }
    }
}